package com.imut.oa.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName(value ="`leave`")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Leave {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long employeeId;
    private Integer leaveType;//请假类型（0病假 1事假 2年假 3调休）
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private Integer duration;
    private String reason;
    private Integer status;//审批状态（0待审批 1已通过 2已拒绝
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Long approverId;
    private String approveComment;
}
